<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box1{
      background-color: pink;
      margin: 10px;
    }
   .father{
  
      width: 300px;
      height: 300px;
      background-color: #e01227;
      border: 2px solid #000;
      flex-wrap: wrap;
    }
    .column{
      display: flex;
      flex-direction: column;
      justify-content: center;

    }
    .row{
      display: flex;
      flex-direction: row;
      justify-content: center;
    }
 

  </style>
</head>
<body>
  <div class="column father">
   <p class="box1">内容1</p>
   <p class="box1">内容1</p>
   <p class="box1">内容1</p>
   <p class="box1">内容1</p>
   <p class="box1">内容1</p>
   <p class="box1">内容1</p>
  </div>
</body>
</html>